package com.johnlee.sentinel.learning.api.service;

import com.johnlee.sentinel.learning.api.configuration.FeignConfiguration;
import com.johnlee.sentinel.learning.api.service.fallback.SentinelServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

@FeignClient(name = "SENTINEL-LEARNING-SVC", fallback = SentinelServiceFallback.class, configuration = FeignConfiguration.class)
public interface SentinelFeignAgent {

    @GetMapping("/helloCloudFeign")
    String helloCloudFeign();
}
